package com.zb.impl;

import com.zb.dao.ProjectinfoDao;
import com.zb.entity.Projectinfo;
import com.zb.service.ProjectinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class ProjectinfoServiceImpl implements ProjectinfoService {
    @Autowired
    private ProjectinfoDao projectinfoDao;
    @Override
    public List<Projectinfo> listProjectinfo() {
        return projectinfoDao.listProjectinfo();
    }

    @Override
    public List<Projectinfo> listProjectinfoByStatus(int status) {
        return projectinfoDao.listProjectinfoByStatus(status);
    }

    @Override
    public Projectinfo getProjectinfoById(int id) {
        return projectinfoDao.getProjectinfoById(id);
    }

    @Override
    public int updateProjectinfo(int status, int id) {
        return projectinfoDao.updateProjectinfo(status,id);
    }
}
